package com.lh.job.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lh.common.entity.admin.Order;
import com.lh.common.enums.OrderStatusEnum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author FH
 * @ClassName: orderMapper
 * @Description: (类作用)
 * @date: 2020-05-25 16:00
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    int updateOrderLoseStatus(@Param("pid") Long pid, @Param("aid") Long aid);

    List<Order> overtimeOrder(@Param("orderStatus") OrderStatusEnum orderStatus, @Param("day")String day);

    void updateByKey(Order order);

    List<Order> refundOrder();

    int updateUserWin(@Param("pid")Long pid,@Param("periodCode")String periodCode);
}
